<?php
$this_mod = $_GET['mod'];
if (!($this_mod_info = mst_loadinfomod($this_mod)))
{
    die('Модуль не найден');
}
if (!setup_infomod_load())
{
    die('Информация о модулях не найдена');
}
// Регистрационная информация о модуле
$this_mod_reginfo = setup_infomod_get($this_mod);
?>
<?php

switch($Switcher->next())
{
    case "view":
        include($Switcher->path_branch('dsp_view.php'));
    break;
    case "reg":
        include($Switcher->path_branch('dsp_reg.php'));
    break;
    case "delete":
        include($Switcher->path_branch('dsp_deleted.php'));
    break;
    case "install":
        include($Switcher->path_branch('dsp_install.php'));
    break;
    case "upgrade":
        include($Switcher->path_branch('dsp_upgrade.php'));
    break;
    default:
        $Switcher->subswitch('switch','error','switch.php',0,null,'404');
    break;
}

if (!setup_infomod_save())
{
    ?>Информация о модулях не может быть сохранена!<?
}
?>